package com.patrol.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author 房梦豪
 * @version 1.0
 * @description: TODO
 * @date 2021/9/12 19:49
 */
@Configuration
public class WebSocketConfig {


//    自动注册使用了@ServerEndpoint注解的类
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
